#ifndef _BOARD_H_
#define _BOARD_H_


#include "hard_wire.h"
#include "..\..\..\src\polsys.h"

#define Board_Init()    \
{\
    GPIO_INIT;\
}

#define Board_Sleep()   \
{\
    Adc_Disable();\
    Pwm_StopCH1();/*PWMCON = 0;*/\
    Wdt_Clear();\
    Wdt_Disable();\
    PORTA;\
    PORTB;\
    SLEEP();\
    /*NOP();*/\
    Adc_Enable();\
    Pwm_StartCH1();/*Pwm_Init();*/\
    Wdt_Enable();\
}


#define Board_ButtonIsDown()    (!BUTTON)


#endif


